package com.butterfly.hotkey.common.result;


/**
 * @author butterfly
 */
public abstract class AbstractResult<T> {

    /**
     * 编码
     */
    protected String code;

    /**
     * 信息
     */
    protected String msg;

    /**
     * set data
     *
     * @param data data
     */
    public abstract void setData(T data);

    /**
     * get data
     *
     * @return data
     */
    public abstract T getData();

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }

    public void setMsg(String errorMsg) {
        this.msg = errorMsg;
    }

    public String getMsg() {
        return this.msg;
    }
}
